﻿using System;
using System.IO;
using System.Web.Core;
using System.Configuration;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Collections;
using System.Web;
using System.Xml;

namespace Yuanlin.Business
{
    public class SiteUrls
    {
        private static SiteUrls instance = new SiteUrls();
        private UrlManager urlManager = UrlManager.Instance;
        private ArrayList tabCompanyUrls;

        #region Singleton Instance

        private SiteUrls()
        {
        }

        public static SiteUrls Instance()
        {
            return instance;
        }

        #endregion

        #region Public Properties

        public ArrayList TabCompanyUrls
        {
            get
            {
                if (tabCompanyUrls == null)
                {
                    XmlDocument doc = new XmlDocument();
                    doc.Load(urlManager.UrlsFile);
                    tabCompanyUrls = CreateNavigation(doc.SelectSingleNode("UrlManager/companynavigations"));
                }
                return tabCompanyUrls;
            }
        }

        #endregion

        private ArrayList CreateNavigation(XmlNode navigationsNode)
        {
            ArrayList navigations = new ArrayList();
            if (navigationsNode != null)
            {
                foreach (XmlNode node in navigationsNode.ChildNodes)
                {
                    if (node.NodeType != XmlNodeType.Comment)
                    {
                        XmlAttribute name = node.Attributes["name"];
                        XmlAttribute resourceUrl = node.Attributes["resourceUrl"];
                        XmlAttribute resourceName = node.Attributes["resourceName"];
                        XmlAttribute navigateUrl = node.Attributes["navigateUrl"];
                        XmlAttribute text = node.Attributes["text"];
                        XmlAttribute targetAttr = node.Attributes["target"];
                        XmlAttribute classAttr = node.Attributes["class"];
                        XmlAttribute roles = node.Attributes["roles"];
                        XmlAttribute navType = node.Attributes["navType"];

                        string rolesValue;
                        if (roles == null)
                        {
                            rolesValue = "所有人";
                        }
                        else
                        {
                            rolesValue = roles.Value;
                        }

                        string urlValue;
                        if (resourceUrl == null)
                        {
                            urlValue = navigateUrl.Value;
                        }
                        else
                        {
                            urlValue = urlManager.FormatUrl(resourceUrl.Value);
                        }

                        string target = string.Empty;
                        if (targetAttr != null)
                        {
                            target = targetAttr.Value;
                        }

                        string _class = string.Empty;
                        if (classAttr != null)
                        {
                            _class = classAttr.Value;
                        }

                        string navTypeValue = string.Empty;
                        if (navType != null)
                        {
                            navTypeValue = navType.Value;
                        }

                        NavLink link = new NavLink(name.Value, (resourceName == null) ? null : resourceName.Value, (text == null) ? null : text.Value, urlValue, target, _class, rolesValue, navTypeValue);
                        navigations.Add(link);
                    }
                }
            }
            return navigations;
        }

        #region Common Methods

        public string MapPath(string path)
        {
            if (HttpContext.Current != null)
                return HttpContext.Current.Server.MapPath(path);
            else
                return PhysicalPath(path.Replace("/", Path.DirectorySeparatorChar.ToString()).Replace("~", ""));
        }
        public string PhysicalPath(string path)
        {
            return string.Concat(RootPath().TrimEnd(Path.DirectorySeparatorChar), Path.DirectorySeparatorChar.ToString(), path.TrimStart(Path.DirectorySeparatorChar));
        }
        private string rootPath = null;
        private string RootPath()
        {
            if (rootPath == null)
            {
                rootPath = AppDomain.CurrentDomain.BaseDirectory;
                string dirSep = Path.DirectorySeparatorChar.ToString();

                rootPath = rootPath.Replace("/", dirSep);
            }
            return rootPath;
        }

        #endregion

        #region Common Site Urls

        public string Home
        {
            get
            {
                return urlManager.FormatUrl("home");
            }
        }
        public string Register
        {
            get
            {
                return urlManager.FormatUrl("register");
            }
        }
        public string RegisterUserSecondStepPage
        {
            get
            {
                return urlManager.FormatUrl("registerusersecondsteppage");
            }
        }
        public string RegisterUserCompletePage
        {
            get
            {
                return urlManager.FormatUrl("registerusercompletepage");
            }
        }
        public string RegisterUserSuccessPage(string greenNumber)
        {
            return urlManager.FormatUrl("registerusersuccesspage", greenNumber);
        }
        public string Login
        {
            get
            {
                return urlManager.FormatUrl("login");
            }
        }
        public string Logout
        {
            get
            {
                return urlManager.FormatUrl("logout");
            }
        }
        public string ControlPanel
        {
            get
            {
                return urlManager.FormatUrl("controlpanel");
            }
        }
        public string ControlPanelForAdministrator
        {
            get
            {
                return urlManager.FormatUrl("controlpanelforadministrator");
            }
        }
        public string Favicon
        {
            get { return urlManager.FormatUrl("favicon"); }
        }
        public string MemberService(int entityid)
        {
            return urlManager.FormatUrl("memberservice", entityid);
        }
        public string GetServiceTerms(int entityid)
        {
            return urlManager.FormatUrl("serviceterms", entityid);
        }
        public string GetHelpCenter(int entityid)
        {
            return urlManager.FormatUrl("helpcenter", entityid);
        }
        public string GetContentHtml(int entityid, int categoryId)
        {
            return urlManager.FormatUrl("contenthtml", entityid, categoryId);
        }
        public string GetRoleAddUrl()
        {
            return urlManager.FormatUrl("role_add");
        }
        public string GetRoleEditUrl(int roleId)
        {
            return urlManager.FormatUrl("role_edit", roleId);
        }
        public string GetRoleListUrl()
        {
            return urlManager.FormatUrl("role_list");
        }
        public string GetUserRolesUrl(int userId)
        {
            return urlManager.FormatUrl("userroles", userId);
        }
        public string GetAttachmentFullVirtualPathUrl(AttachmentEntity attachmentEntity)
        {
            return Globals.ApplicationPath + SiteUrls.Instance().GetAttachmentUrl(attachmentEntity);
        }
        public string GetAttachmentUrl(AttachmentEntity attachmentEntity)
        {
            string urlStr = "/Themes/Default/Images/defaultSiteSmallPic.gif";
            string formattedFileName = FormatFileName(attachmentEntity);
            if (string.IsNullOrEmpty(formattedFileName))
            {
                return urlStr;
            }
            string path = ConfigurationManager.AppSettings["StorageFolder"].Replace("~", string.Empty) + @"/" + formattedFileName;
            if (!File.Exists(System.Web.HttpContext.Current.Request.PhysicalApplicationPath + path.Replace("~", string.Empty)))//服务器端如果没这个文件也返回默认值
            {
                return urlStr;
            }
            return path.Replace("~", string.Empty);
        }
        public string GetAttachmentUrl(string entityTypeName, int entityId, string fileName)
        {
            string urlStr = "/Themes/Default/Images/defaultSiteSmallPic.gif";
            string formattedFileName = FormatFileName(entityTypeName, entityId, fileName);
            if (string.IsNullOrEmpty(formattedFileName))
            {
                return urlStr;
            }
            string path = ConfigurationManager.AppSettings["StorageFolder"].Replace("~", string.Empty) + @"/" + formattedFileName;
            if (!File.Exists(System.Web.HttpContext.Current.Request.PhysicalApplicationPath + path.Replace("~", string.Empty)))//服务器端如果没这个文件也返回默认值
            {
                return urlStr;
            }
            return path.Replace("~", string.Empty);
        }
        public string GetPostedFileName(HtmlInputFile attachmentEntity)
        {
            if (!IsAttachmentValid(attachmentEntity))
            {
                return string.Empty;
            }
            return attachmentEntity.PostedFile.FileName.Substring(attachmentEntity.PostedFile.FileName.LastIndexOf("\\") + 1);
        }
        public string GetPostedFileName(FileUpload attachmentEntity)
        {
            if (!IsAttachmentValid(attachmentEntity))
            {
                return string.Empty;
            }
            return attachmentEntity.PostedFile.FileName.Substring(attachmentEntity.PostedFile.FileName.LastIndexOf("\\") + 1);
        }
        public string GetFile(AttachmentEntity attachmentEntity)
        {
            string fileName = FormatFileName(attachmentEntity);
            if (string.IsNullOrEmpty(fileName))
            {
                return string.Empty;
            }
            return MapPath(@"~" + ConfigurationManager.AppSettings["StorageFolder"].Replace("~", string.Empty) + @"\" + fileName);
        }
        public string GetFile(string entityTypeName, int entityId, string attachmentFileName)
        {
            string fileName = FormatFileName(entityTypeName, entityId, attachmentFileName);
            if (string.IsNullOrEmpty(fileName))
            {
                return string.Empty;
            }
            return MapPath(@"~" + ConfigurationManager.AppSettings["StorageFolder"].Replace("~", string.Empty) + @"\" + fileName);
        }
        public string FormatFileName(AttachmentEntity attachmentEntity)
        {
            if (attachmentEntity == null || attachmentEntity.EntityId.Value <= 0 || string.IsNullOrEmpty(attachmentEntity.AttachmentFileName.Value))
            {
                return string.Empty;
            }
            return string.Format("{0}.{1}.{2}", attachmentEntity.GetType().Name, attachmentEntity.EntityId.Value, attachmentEntity.AttachmentFileName.Value);
        }
        public string FormatFileName(string entityTypeName, int entityId, string fileName)
        {
            if (entityId <= 0 || string.IsNullOrEmpty(fileName))
            {
                return string.Empty;
            }
            return string.Format("{0}.{1}.{2}", entityTypeName, entityId, fileName);
        }
        public bool IsAttachmentValid(HtmlInputFile attachmentEntity)
        {
            if (attachmentEntity != null &&
                attachmentEntity.PostedFile != null &&
                !string.IsNullOrEmpty(attachmentEntity.PostedFile.FileName) &&
                attachmentEntity.PostedFile.ContentLength > 0)
            {
                return true;
            }
            return false;
        }
        public bool IsAttachmentValid(FileUpload attachmentEntity)
        {
            if (attachmentEntity != null &&
                attachmentEntity.PostedFile != null &&
                !string.IsNullOrEmpty(attachmentEntity.PostedFile.FileName) &&
                attachmentEntity.PostedFile.ContentLength > 0)
            {
                return true;
            }
            return false;
        }
        public void DeleteFile(AttachmentEntity attachmentEntity)
        {
            DeleteFile(GetFile(attachmentEntity));
        }
        public void DeleteFile(string file)
        {
            if (!string.IsNullOrEmpty(file) && File.Exists(file))
            {
                try
                {
                    FileInfo fi = new FileInfo(file);
                    if (((fi.Attributes & FileAttributes.Hidden) == FileAttributes.Hidden) || ((fi.Attributes & FileAttributes.ReadOnly) == FileAttributes.ReadOnly))
                    {
                        fi.Attributes = FileAttributes.Normal;
                    }
                    File.Delete(file);
                }
                catch { }
            }
        }
        public void SaveFile(string file, HtmlInputFile attachmentEntity)
        {
            if (string.IsNullOrEmpty(file) || !IsAttachmentValid(attachmentEntity))
            {
                return;
            }
            if (File.Exists(file))
            {
                File.Delete(file);
            }

            MemoryStream memoryStream = null;
            FileStream fileStream = null;
            try
            {
                byte[] entity = new byte[attachmentEntity.PostedFile.ContentLength];
                attachmentEntity.PostedFile.InputStream.Read(entity, 0, attachmentEntity.PostedFile.ContentLength);
                memoryStream = new MemoryStream(entity);
                memoryStream.Position = 0;

                int bytes = 0;
                int maxBytes = 1024 * 1024 * 10;
                byte[] buffer = new byte[maxBytes];
                fileStream = new FileStream(file, FileMode.Create, FileAccess.Write, FileShare.None);

                while ((bytes = memoryStream.Read(buffer, 0, maxBytes)) > 0)
                {
                    fileStream.Write(buffer, 0, bytes);
                }

                fileStream.Flush();
            }
            catch (Exception ex)
            {
                throw (ex);
            }
            finally
            {
                if (fileStream != null)
                {
                    fileStream.Close();
                    fileStream.Dispose();
                }
                if (memoryStream != null)
                {
                    memoryStream.Close();
                    memoryStream.Dispose();
                }
            }

            string fileName = file.Substring(file.LastIndexOf("\\") + 1);
            WaterMark getLogo = new WaterMark();
            getLogo.TypeOfMark = "image";
            getLogo.ImgFilePath = @"~" + ConfigurationManager.AppSettings["StorageFolder"].Replace("~", string.Empty) + "/" + fileName;
            getLogo.LogoFilePath = GetWaterMarkFile(fileName.Substring(0, fileName.IndexOf('.')));
            getLogo.CreatWaterMark();

        }
        public void SaveFile(string file, FileUpload attachmentEntity)
        {
            if (string.IsNullOrEmpty(file) || !IsAttachmentValid(attachmentEntity))
            {
                return;
            }
            if (File.Exists(file))
            {
                File.Delete(file);
            }

            MemoryStream memoryStream = null;
            FileStream fileStream = null;
            try
            {
                byte[] entity = new byte[attachmentEntity.PostedFile.ContentLength];
                attachmentEntity.PostedFile.InputStream.Read(entity, 0, attachmentEntity.PostedFile.ContentLength);
                memoryStream = new MemoryStream(entity);
                memoryStream.Position = 0;

                int bytes = 0;
                int maxBytes = 1024 * 1024 * 10;
                byte[] buffer = new byte[maxBytes];
                fileStream = new FileStream(file, FileMode.Create, FileAccess.Write, FileShare.None);

                while ((bytes = memoryStream.Read(buffer, 0, maxBytes)) > 0)
                {
                    fileStream.Write(buffer, 0, bytes);
                }

                fileStream.Flush();

            }
            catch (Exception ex)
            {
                throw (ex);
            }
            finally
            {
                if (fileStream != null)
                {
                    fileStream.Close();
                    fileStream.Dispose();
                }
                if (memoryStream != null)
                {
                    memoryStream.Close();
                    memoryStream.Dispose();
                }
            }

            string fileName = file.Substring(file.LastIndexOf("\\") + 1);
            WaterMark getLogo = new WaterMark();
            getLogo.TypeOfMark = "image";
            getLogo.ImgFilePath = @"~" + ConfigurationManager.AppSettings["StorageFolder"].Replace("~", string.Empty) + "/" + fileName;
            getLogo.LogoFilePath = GetWaterMarkFile(fileName.Substring(0, fileName.IndexOf('.')));
            getLogo.CreatWaterMark();
        }
        private string GetWaterMarkFile(string entityType)
        {
            string filePath = "~/Themes/Default/Images/WaterMark/";
            string fileName = "logoForWaterMark.gif";

            ArrayList huamus = new ArrayList();
            huamus.Add((new CompanyProduct().GetType().Name).ToString());

            ArrayList zidians = new ArrayList();
            zidians.Add((new PlantSection_ThreadPicture().GetType().Name).ToString());
            zidians.Add((new PlantSection_PostPicture().GetType().Name).ToString());

            ArrayList forums = new ArrayList();
            ArrayList zhongzhis = new ArrayList();
            ArrayList yangzhis = new ArrayList();

            if (huamus.Contains(entityType))
            {
                fileName = "huamuForWaterMark.gif";
            }
            else if (zidians.Contains(entityType))
            {
                fileName = "zidianForWaterMark.gif";
            }
            else if (forums.Contains(entityType))
            {
                fileName = "forumForWaterMark.gif";
            }
            else if (zhongzhis.Contains(entityType))
            {
                fileName = "zhongzhiForWaterMark.gif";
            }
            else if (yangzhis.Contains(entityType))
            {
                fileName = "yangzhiForWaterMark.gif";
            }

            return filePath + fileName;
        }

        #endregion

        //----------------------------------------------------------------------------------------------------
        //----------------------------------------------------------------------------------------------------

        //园林网网站前台页面
        #region Site Front End Urls

        public virtual string GetCompanyProductSimpleSearchResultUrl(string productTitle)
        {
            return urlManager.FormatUrl("search_companyproduct_simplesearchresult", productTitle);
        }
        public virtual string GetZiCaiSimpleSearchResultUrl(string ziCaiTitle)
        {
            return urlManager.FormatUrl("search_companyzicaiinfo_simplesearchresult", ziCaiTitle);
        }
        public virtual string GetCompanySimpleSearchResultUrl(string companyName)
        {
            return urlManager.FormatUrl("search_company_simplesearchresult", companyName);
        }

        public virtual string GetCompanyProductSearchResultUrl(int areaID, int level, int productCategoryID, string tradeType, string title, int provinceId, int cityId, int townId, int smallTownId, string orderBy, string asc)
        {
            return urlManager.FormatUrl("search_productsearchresult", areaID, level.ToString(), productCategoryID.ToString(), tradeType, title, provinceId, cityId, townId, smallTownId, orderBy, asc);
        }
        public virtual string GetZiCaiSearchResultUrl(int areaID, int level, int zicaiTopLevelCategoryID, int zicaiSecondLevelCategoryID, string tradeType, string title, int provinceId, int cityId, int townId, int smallTownId, int kind,int defaultIndex)
        {
            return urlManager.FormatUrl("search_zicaisearchresult", areaID, level, zicaiTopLevelCategoryID, zicaiSecondLevelCategoryID, tradeType, title, provinceId, cityId, townId, smallTownId, kind, defaultIndex);
        }
        public virtual string GetCompanySearchResultUrl(int areaID, int level, int companyType, string companyKey, string userNameKey, string mobilePhoneKey, int provinceId, int cityId, int townId, int smallTownId)
        {
            return urlManager.FormatUrl("search_companysearchresult", areaID, level, companyType, companyKey, userNameKey, mobilePhoneKey, provinceId, cityId, townId, smallTownId);
        }

        public virtual string GetNewsPicListUrl()
        {
            return urlManager.FormatUrl("news_defaultpic");
        }
        public virtual string GetArticleListUrl(int categoryID)
        {
            if (categoryID <= 0)
            {
                return urlManager.FormatUrl("news_default");
            }
            return urlManager.FormatUrl("news_list", categoryID);
        }
        public virtual string GetArticleUrl(int articleId)
        {
            return urlManager.FormatUrl("news_detail", articleId);
        }

        public string GetHuamuHuizhanNewsListUrl(int provinceId, int cityId, int townId, int smallTownId)
        {
            return urlManager.FormatUrl("huamuhuizhan_list", provinceId, cityId, townId, smallTownId);
        }
        public string GetHuamuHuizhanNewsUrl(int huamuHuizhanNewsId)
        {
            return urlManager.FormatUrl("huamuhuizhan_detail", huamuHuizhanNewsId);
        }
        public string GetHuamuShichangNewsListUrl(int provinceId, int cityId, int townId, int smallTownId)
        {
            return urlManager.FormatUrl("huamushichang_list", provinceId, cityId, townId, smallTownId);
        }
        public string GetHuamuShichangNewsUrl(int huamuShiChangNewsId)
        {
            return urlManager.FormatUrl("huamushichang_detail", huamuShiChangNewsId);
        }
        public string GetHuamuZhiXiangNewsListUrl(int provinceId, int cityId, int townId, int smallTownId)
        {
            return urlManager.FormatUrl("huamuzhixiang_list", provinceId, cityId, townId, smallTownId);
        }
        public string GetHuamuZhiXiangNewsUrl(int huamuZhiXiangNewsId)
        {
            return urlManager.FormatUrl("huamuzhixiang_detail", huamuZhiXiangNewsId);
        }

        public virtual string GetHuaMuJinPinUrl()
        {
            return urlManager.FormatUrl("huamujinpin");
        }
        public virtual string GetHuaMuJiShouUrl()
        {
            return urlManager.FormatUrl("huamujishou");
        }

        public virtual string GetZiCaiUrl(int kind)
        {
            if (kind == 1)
            {
                return urlManager.FormatUrl("machine");
            }
            else if (kind == 2)
            {
                return urlManager.FormatUrl("facility");
            }
            else if (kind == 3)
            {
                return urlManager.FormatUrl("agricultural");
            }
            else if (kind == 4)
            {
                return urlManager.FormatUrl("huafei");
            }
            return urlManager.FormatUrl("mash");
        }

        public virtual string GetTechDefaultUrl()
        {
            return urlManager.FormatUrl("technology_default");
        }
        public virtual string GetTechListUrl(int categoryID,int categoryType)
        {
            return urlManager.FormatUrl("technology_list", categoryID.ToString(), categoryType);
        }
        public virtual string GetTechListUrl(string charactor,int categoryType)
        {
            if (categoryType == (int)CategoryType.Fishery)
            {
                return GetTechAquacultureListUrl(charactor, categoryType);
            }
            else if (categoryType == (int)CategoryType.Huamu)
            {
                return urlManager.FormatUrl("technology_list2", charactor, categoryType);
            }
            return "";
        }
        public virtual string GetTechUrl(int postID,int categoryType)
        {
            return urlManager.FormatUrl("technology_detail", postID.ToString(),categoryType);
        }

        public virtual string GetFriendLinkDefaultUrl()
        {
            return urlManager.FormatUrl("firendlink_default");
        }
        public virtual string GetFriendLinksListUrl(int categoryId)
        {
            return urlManager.FormatUrl("firendlink_list", categoryId);
        }
        public virtual string GetContentHtmlDefaultUrl()
        {
            return urlManager.FormatUrl("contenthtml_default");
        }
        public virtual string GetContentHtmlListUrl(int categoryId)
        {
            return urlManager.FormatUrl("contenthtml_list", categoryId);
        }
        public virtual string GetMemberServiceDefaultUrl()
        {
            return urlManager.FormatUrl("memberservice_default");
        }
        public virtual string GetServiceTermsDefaultUrl()
        {
            return urlManager.FormatUrl("serviceterms_default");
        }
        public virtual string GetHelpCenterDefaultUrl()
        {
            return urlManager.FormatUrl("helpcenters_default");
        }

        /// <summary>
        /// 由于一个花木有两个字段分别保存植物分类和应用分类，从类别找花木时，根本不知道这个是哪个分类，所以要传植物id和应用id,并且是哪个分类
        /// </summary>
        /// <param name="tradeType"></param>
        /// <param name="categoryId">植物id</param>
        /// <param name="appCateId">应用id</param>
        /// <param name="i"></param>
        /// <param name="categoryType">植物分类或应用分类</param>
        /// <param name="orderBy">排序字段</param>
        /// <param name="asc">排序方向</param>
        /// <returns></returns>
        public string GetCompanyProductUrl(string tradeType, int categoryId, int appCateId, int i, int categoryType, string orderBy, string asc)
        {
            string greenNum = UrlManager.Instance.GetParameterValue<string>(YuanlinParameterName.GreenNum);
            string str = string.Empty;
            int plantCategoryId = 0;
            int appCategoryId = 0;
            if (appCateId == 0)//由类别传过来的
            {
                if (categoryType == 0)//植物分类
                {
                    plantCategoryId = categoryId;
                }
                else if (categoryType == 1)//应用分类
                {
                    appCategoryId = categoryId;
                }
            }
            else //导航
            {
                appCategoryId = appCateId;
            }
            if (i == 1)
            {
                switch (tradeType)
                {
                    case "1":
                        str = GetUserProductListJPUrl(greenNum, plantCategoryId, appCategoryId, categoryType);
                        break;
                    case "2":
                        str = GetUserProductListQGUrl(greenNum, plantCategoryId, appCategoryId, categoryType);
                        break;
                    case "3":
                        str = GetUserProductListJSUrl(greenNum, plantCategoryId, appCategoryId, categoryType);
                        break;
                    default:
                        str = GetUserProductListUrl(greenNum, plantCategoryId, appCategoryId, categoryType);
                        break;
                }
            }
            else if (i == 2)
            {
                switch (tradeType)
                {
                    case "1":
                        str = GetUserProductListJP2Url(greenNum, plantCategoryId, appCategoryId, categoryType, orderBy, asc);
                        break;
                    case "2":
                        str = GetUserProductListQG2Url(greenNum, plantCategoryId, appCategoryId, categoryType, orderBy, asc);
                        break;
                    case "3":
                        str = GetUserProductListJS2Url(greenNum, plantCategoryId, appCategoryId, categoryType, orderBy, asc);
                        break;
                    default:
                        str = GetUserProductList2Url(greenNum, plantCategoryId, appCategoryId, categoryType, orderBy, asc);
                        break;
                }
            }
            return str;
        }
        public string GetZiCaiInfoUrl(int kind, string tradeType, int topCategoryId, int secondCategoryId, int i)
        {
            string greenNum = UrlManager.Instance.GetParameterValue<string>(YuanlinParameterName.GreenNum);
            string str = string.Empty;
            if (i == 1)
            {
                switch (kind)
                {
                    case 1:
                        {
                            if (tradeType == "0")
                            {
                                str = GetCompanyMachineChuShouListUrl(greenNum, topCategoryId, secondCategoryId);
                            }
                            else if (tradeType == "1")
                            {
                                str = GetCompanyMachineQiuGouListUrl(greenNum, topCategoryId, secondCategoryId);

                            }
                        }
                        break;
                    case 2:
                        {
                            if (tradeType == "0")
                            {
                                str = GetCompanyFacilityChuShouListUrl(greenNum, topCategoryId, secondCategoryId);
                            }
                            else if (tradeType == "1")
                            {
                                str = GetCompanyFacilityQiuGouListUrl(greenNum, topCategoryId, secondCategoryId);

                            }
                        }
                        break;
                    case 3:
                        {
                            if (tradeType == "0")
                            {
                                str = GetCompanyAgriculturalChuShouListUrl(greenNum, topCategoryId, secondCategoryId);
                            }
                            else if (tradeType == "1")
                            {
                                str = GetCompanyAgriculturalQiuGouListUrl(greenNum, topCategoryId, secondCategoryId);

                            }
                        }
                        break;
                    case 4:
                        {
                            if (tradeType == "0")
                            {
                                str = GetCompanyHuaFeiChuShouListUrl(greenNum, topCategoryId, secondCategoryId);
                            }
                            else if (tradeType == "1")
                            {
                                str = GetCompanyHuaFeiQiuGouListUrl(greenNum, topCategoryId, secondCategoryId);

                            }
                        }
                        break;
                    case 5:
                        {
                            if (tradeType == "0")
                            {
                                str = GetCompanyMashChuShouListUrl(greenNum, topCategoryId, secondCategoryId);
                            }
                            else if (tradeType == "1")
                            {
                                str = GetCompanyMashQiuGouListUrl(greenNum, topCategoryId, secondCategoryId);

                            }
                        }
                        break;
                    default:
                        break;
                }
            }
            else if (i == 2)
            {
                switch (kind)
                {
                    case 1:
                        {
                            if (tradeType == "0")
                            {
                                str = GetCompanyMachineChuShouList2Url(greenNum, topCategoryId, secondCategoryId);
                            }
                            else if (tradeType == "1")
                            {
                                str = GetCompanyMachineQiuGouList2Url(greenNum, topCategoryId, secondCategoryId);

                            }
                        }
                        break;
                    case 2:
                        {
                            if (tradeType == "0")
                            {
                                str = GetCompanyFacilityChuShouList2Url(greenNum, topCategoryId, secondCategoryId);
                            }
                            else if (tradeType == "1")
                            {
                                str = GetCompanyFacilityQiuGouList2Url(greenNum, topCategoryId, secondCategoryId);

                            }
                        }
                        break;
                    case 3:
                        {
                            if (tradeType == "0")
                            {
                                str = GetCompanyAgriculturalChuShouList2Url(greenNum, topCategoryId, secondCategoryId);
                            }
                            else if (tradeType == "1")
                            {
                                str = GetCompanyAgriculturalQiuGouList2Url(greenNum, topCategoryId, secondCategoryId);

                            }
                        }
                        break;
                    case 4:
                        {
                            if (tradeType == "0")
                            {
                                str = GetCompanyHuaFeiChuShouList2Url(greenNum, topCategoryId, secondCategoryId);
                            }
                            else if (tradeType == "1")
                            {
                                str = GetCompanyHuaFeiQiuGouList2Url(greenNum, topCategoryId, secondCategoryId);

                            }
                        }
                        break;
                    case 5:
                        {
                            if (tradeType == "0")
                            {
                                str = GetCompanyMashChuShouList2Url(greenNum, topCategoryId, secondCategoryId);
                            }
                            else if (tradeType == "1")
                            {
                                str = GetCompanyMashQiuGouList2Url(greenNum, topCategoryId, secondCategoryId);

                            }
                        }
                        break;
                    default:
                        break;
                }
            }
            return str;
        }

        public string GetCompanyFisheryUrl(string tradeType, int categoryId, int appCateId, int i, int categoryType)
        {
            string greenNum = UrlManager.Instance.GetParameterValue<string>(YuanlinParameterName.GreenNum);
            string str = string.Empty;
            if (i == 1)
            {
                switch (tradeType)
                {
                    case "1":
                        str = GetUserFisheryListJPUrl(greenNum, categoryId, appCateId, categoryType);
                        break;
                    case "2":
                        str = GetUserFisheryListQGUrl(greenNum, categoryId, appCateId, categoryType);
                        break;
                    case "3":
                        str = GetUserFisheryListJSUrl(greenNum, categoryId, appCateId, categoryType);
                        break;
                    default:
                        str = GetUserFisheryListUrl(greenNum, categoryId, appCateId, categoryType);
                        break;
                }
            }
            else if (i == 2)
            {
                switch (tradeType)
                {
                    case "1":
                        str = GetUserFisheryListJP2Url(greenNum, categoryId, appCateId, categoryType);
                        break;
                    case "2":
                        str = GetUserFisheryListQG2Url(greenNum, categoryId, appCateId, categoryType);
                        break;
                    case "3":
                        str = GetUserFisheryListJS2Url(greenNum, categoryId, appCateId, categoryType);
                        break;
                    default:
                        str = GetUserFisheryList2Url(greenNum, categoryId, appCateId, categoryType);
                        break;
                }
            }
            return str;
        }

        #endregion

        //园林网企业前台页面
        #region Company Front End Urls

        public virtual string GetYuanlinDefaultUrl(string greenNum)
        {
            return urlManager.FormatUrl("userpages_default", greenNum);
        }
        public virtual string GetUserProductListUrl(string greenNum)
        {
            return GetUserProductListUrl(greenNum, 0, 0, -1);
        }
        public virtual string GetUserProductList2Url(string greenNum)
        {
            return GetUserProductList2Url(greenNum, 0, 0, -1, "", "");
        }
        public virtual string GetCompanyMachineChuShouListUrl(string greenNum)
        {
            return GetCompanyMachineChuShouListUrl(greenNum, 0, 0);
        }
        public virtual string GetCompanyMachineChuShouList2Url(string greenNum)
        {
            return GetCompanyMachineChuShouList2Url(greenNum, 0, 0);
        }
        public virtual string GetCompanyMachineQiuGouListUrl(string greenNum)
        {
            return GetCompanyMachineQiuGouListUrl(greenNum, 0, 0);
        }
        public virtual string GetCompanyMachineQiuGouList2Url(string greenNum)
        {
            return GetCompanyMachineQiuGouList2Url(greenNum, 0, 0);
        }
        public virtual string GetCompanyFacilityChuShouListUrl(string greenNum)
        {
            return GetCompanyFacilityChuShouListUrl(greenNum, 0, 0);
        }
        public virtual string GetCompanyFacilityChuShouList2Url(string greenNum)
        {
            return GetCompanyFacilityChuShouList2Url(greenNum, 0, 0);
        }
        public virtual string GetCompanyFacilityQiuGouListUrl(string greenNum)
        {
            return GetCompanyFacilityQiuGouListUrl(greenNum, 0, 0);
        }
        public virtual string GetCompanyFacilityQiuGouList2Url(string greenNum)
        {
            return GetCompanyFacilityQiuGouList2Url(greenNum, 0, 0);
        }
        public virtual string GetCompanyAgriculturalChuShouListUrl(string greenNum)
        {
            return GetCompanyAgriculturalChuShouListUrl(greenNum, 0, 0);
        }
        public virtual string GetCompanyAgriculturalChuShouList2Url(string greenNum)
        {
            return GetCompanyAgriculturalChuShouList2Url(greenNum, 0, 0);
        }
        public virtual string GetCompanyAgriculturalQiuGouListUrl(string greenNum)
        {
            return GetCompanyAgriculturalQiuGouListUrl(greenNum, 0, 0);
        }
        public virtual string GetCompanyAgriculturalQiuGouList2Url(string greenNum)
        {
            return GetCompanyAgriculturalQiuGouList2Url(greenNum, 0, 0);
        }
        public virtual string GetUserProductListUrl(string greenNum, int categoryID, int appCategoryId, int categoryType)
        {
            if (categoryID <= 0 && appCategoryId <= 0)
            {
                return urlManager.FormatUrl("userpages_productlist", greenNum);
            }
            return urlManager.FormatUrl("userpages_productlistid", greenNum, categoryID.ToString(), appCategoryId.ToString());
        }
        public virtual string GetUserProductList2Url(string greenNum, int categoryID, int appCategoryId, int categoryType, string orderBy, string asc)
        {
            if (string.IsNullOrEmpty(orderBy))
            {
                orderBy = "UpdateDate";
                asc = "0";
            }
            if (categoryID <= 0 && appCategoryId <= 0)
            {
                return urlManager.FormatUrl("userpages_productlist2", greenNum, orderBy, asc);
            }
            return urlManager.FormatUrl("userpages_productlistid2", greenNum, categoryID.ToString(), appCategoryId.ToString(), orderBy, asc);
        }
        public virtual string GetUserProductListJPUrl(string greenNum, int categoryID, int appCategoryId, int categoryType)
        {
            if (categoryID <= 0 && appCategoryId <= 0)
            {
                return urlManager.FormatUrl("userpages_productlistjp", greenNum);
            }
            return urlManager.FormatUrl("userpages_productlistjpid", greenNum, categoryID.ToString(), appCategoryId.ToString());
        }
        public virtual string GetUserProductListJP2Url(string greenNum, int categoryID, int appCategoryId, int categoryType, string orderBy, string asc)
        {
            if (string.IsNullOrEmpty(orderBy))
            {
                orderBy = "UpdateDate";
                asc = "0";
            }
            if (categoryID <= 0 && appCategoryId <= 0)
            {
                return urlManager.FormatUrl("userpages_productlistjp2", greenNum, orderBy, asc);
            }
            return urlManager.FormatUrl("userpages_productlistjpid2", greenNum, categoryID.ToString(), appCategoryId.ToString(), orderBy, asc);
        }
        public virtual string GetUserProductListQGUrl(string greenNum, int categoryID, int appCategoryId, int categoryType)
        {
            if (categoryID <= 0 && appCategoryId <= 0)
            {
                return urlManager.FormatUrl("userpages_productlistqg", greenNum);
            }
            return urlManager.FormatUrl("userpages_productlistqgid", greenNum, categoryID.ToString(), appCategoryId.ToString());
        }
        public virtual string GetUserProductListQG2Url(string greenNum, int categoryID, int appCategoryId, int categoryType, string orderBy, string asc)
        {
            if (string.IsNullOrEmpty(orderBy))
            {
                orderBy = "UpdateDate";
                asc = "0";
            }
            if (categoryID <= 0 && appCategoryId <= 0)
            {
                return urlManager.FormatUrl("userpages_productlistqg2", greenNum, orderBy, asc);
            }
            return urlManager.FormatUrl("userpages_productlistqgid2", greenNum, categoryID.ToString(), appCategoryId.ToString(), orderBy, asc);
        }
        public virtual string GetUserProductListJSUrl(string greenNum, int categoryID, int appCategoryId, int categoryType)
        {
            if (categoryID <= 0 && appCategoryId <= 0)
            {
                return urlManager.FormatUrl("userpages_productlistjs", greenNum);
            }
            return urlManager.FormatUrl("userpages_productlistjsid", greenNum, categoryID.ToString(), appCategoryId.ToString());
        }
        public virtual string GetUserProductListJS2Url(string greenNum, int categoryID, int appCategoryId, int categoryType, string orderBy, string asc)
        {
            if (string.IsNullOrEmpty(orderBy))
            {
                orderBy = "UpdateDate";
                asc = "0";
            }
            if (categoryID <= 0 && appCategoryId <= 0)
            {
                return urlManager.FormatUrl("userpages_productlistjs2", greenNum, orderBy, asc);
            }
            return urlManager.FormatUrl("userpages_productlistjsid2", greenNum, categoryID.ToString(), appCategoryId.ToString(), orderBy, asc);
        }
        public virtual string GetUserProductUrl(string greenNum, int postID, string tradeType)
        {
            return urlManager.FormatUrl("userpages_productdetail", greenNum, postID.ToString(), tradeType);
        }
        public virtual string GetUserProductDetailUrl(string greenNum, int postID, string tradeType)
        {
            return urlManager.FormatUrl("productdetail", greenNum, postID.ToString(), tradeType);
        }
        public virtual string GetCompanyMachineChuShouListUrl(string greenNum, int topCategoryId, int secondCategoryId)
        {
            if (topCategoryId <= 0 && secondCategoryId <= 0)
            {
                return urlManager.FormatUrl("userpages_zicailistjxch", greenNum, string.Empty);
            }
            return urlManager.FormatUrl("userpages_zicailistjxchid", greenNum, topCategoryId.ToString(), secondCategoryId.ToString());
        }
        public virtual string GetCompanyMachineChuShouList2Url(string greenNum, int topCategoryId, int secondCategoryId)
        {
            if (topCategoryId <= 0 && secondCategoryId <= 0)
            {
                return urlManager.FormatUrl("userpages_zicailistjxch2", greenNum, string.Empty);
            }
            return urlManager.FormatUrl("userpages_zicailistjxchid2", greenNum, topCategoryId.ToString(), secondCategoryId.ToString());
        }
        public virtual string GetCompanyMachineQiuGouListUrl(string greenNum, int topCategoryId, int secondCategoryId)
        {
            if (topCategoryId <= 0 && secondCategoryId <= 0)
            {
                return urlManager.FormatUrl("userpages_zicailistjxqg", greenNum, string.Empty);
            }
            return urlManager.FormatUrl("userpages_zicailistjxqgid", greenNum, topCategoryId.ToString(), secondCategoryId.ToString());
        }
        public virtual string GetCompanyMachineQiuGouList2Url(string greenNum, int topCategoryId, int secondCategoryId)
        {
            if (topCategoryId <= 0 && secondCategoryId <= 0)
            {
                return urlManager.FormatUrl("userpages_zicailistjxqg2", greenNum, string.Empty);
            }
            return urlManager.FormatUrl("userpages_zicailistjxqgid2", greenNum, topCategoryId.ToString(), secondCategoryId.ToString());
        }
        public virtual string GetCompanyFacilityChuShouListUrl(string greenNum, int topCategoryId, int secondCategoryId)
        {
            if (topCategoryId <= 0 && secondCategoryId <= 0)
            {
                return urlManager.FormatUrl("userpages_zicailistssch", greenNum, string.Empty);
            }
            return urlManager.FormatUrl("userpages_zicailistsschid", greenNum, topCategoryId.ToString(), secondCategoryId.ToString());
        }
        public virtual string GetCompanyFacilityChuShouList2Url(string greenNum, int topCategoryId, int secondCategoryId)
        {
            if (topCategoryId <= 0 && secondCategoryId <= 0)
            {
                return urlManager.FormatUrl("userpages_zicailistssch2", greenNum, string.Empty);
            }
            return urlManager.FormatUrl("userpages_zicailistsschid2", greenNum, topCategoryId.ToString(), secondCategoryId.ToString());
        }
        public virtual string GetCompanyFacilityQiuGouListUrl(string greenNum, int topCategoryId, int secondCategoryId)
        {
            if (topCategoryId <= 0 && secondCategoryId <= 0)
            {
                return urlManager.FormatUrl("userpages_zicailistssqg", greenNum, string.Empty);
            }
            return urlManager.FormatUrl("userpages_zicailistssqgid", greenNum, topCategoryId.ToString(), secondCategoryId.ToString());
        }
        public virtual string GetCompanyFacilityQiuGouList2Url(string greenNum, int topCategoryId, int secondCategoryId)
        {
            if (topCategoryId <= 0 && secondCategoryId <= 0)
            {
                return urlManager.FormatUrl("userpages_zicailistssqg2", greenNum, string.Empty);
            }
            return urlManager.FormatUrl("userpages_zicailistssqgid2", greenNum, topCategoryId.ToString(), secondCategoryId.ToString());
        }
        public virtual string GetCompanyAgriculturalChuShouListUrl(string greenNum, int topCategoryId, int secondCategoryId)
        {
            if (topCategoryId <= 0 && secondCategoryId <= 0)
            {
                return urlManager.FormatUrl("userpages_zicailistnzch", greenNum, string.Empty);
            }
            return urlManager.FormatUrl("userpages_zicailistnzchid", greenNum, topCategoryId.ToString(), secondCategoryId.ToString());
        }
        public virtual string GetCompanyAgriculturalChuShouList2Url(string greenNum, int topCategoryId, int secondCategoryId)
        {
            if (topCategoryId <= 0 && secondCategoryId <= 0)
            {
                return urlManager.FormatUrl("userpages_zicailistnzch2", greenNum, string.Empty);
            }
            return urlManager.FormatUrl("userpages_zicailistnzchid2", greenNum, topCategoryId.ToString(), secondCategoryId.ToString());
        }
        public virtual string GetCompanyAgriculturalQiuGouListUrl(string greenNum, int topCategoryId, int secondCategoryId)
        {
            if (topCategoryId <= 0 && secondCategoryId <= 0)
            {
                return urlManager.FormatUrl("userpages_zicailistnzqg", greenNum, string.Empty);
            }
            return urlManager.FormatUrl("userpages_zicailistnzqgid", greenNum, topCategoryId.ToString(), secondCategoryId.ToString());
        }
        public virtual string GetCompanyAgriculturalQiuGouList2Url(string greenNum, int topCategoryId, int secondCategoryId)
        {
            if (topCategoryId <= 0 && secondCategoryId <= 0)
            {
                return urlManager.FormatUrl("userpages_zicailistnzqg2", greenNum, string.Empty);
            }
            return urlManager.FormatUrl("userpages_zicailistnzqgid2", greenNum, topCategoryId.ToString(), secondCategoryId.ToString());
        }

        public virtual string GetCompanyHuaFeiChuShouListUrl(string greenNum, int topCategoryId, int secondCategoryId)
        {
            if (topCategoryId <= 0 && secondCategoryId <= 0)
            {
                return urlManager.FormatUrl("userpages_zicailisthfch", greenNum, string.Empty);
            }
            return urlManager.FormatUrl("userpages_zicailisthfchid", greenNum, topCategoryId.ToString(), secondCategoryId.ToString());
        }
        public virtual string GetCompanyHuaFeiChuShouList2Url(string greenNum, int topCategoryId, int secondCategoryId)
        {
            if (topCategoryId <= 0 && secondCategoryId <= 0)
            {
                return urlManager.FormatUrl("userpages_zicailisthfch2", greenNum, string.Empty);
            }
            return urlManager.FormatUrl("userpages_zicailisthfchid2", greenNum, topCategoryId.ToString(), secondCategoryId.ToString());
        }
        public virtual string GetCompanyHuaFeiQiuGouListUrl(string greenNum, int topCategoryId, int secondCategoryId)
        {
            if (topCategoryId <= 0 && secondCategoryId <= 0)
            {
                return urlManager.FormatUrl("userpages_zicailisthfqg", greenNum, string.Empty);
            }
            return urlManager.FormatUrl("userpages_zicailisthfqgid", greenNum, topCategoryId.ToString(), secondCategoryId.ToString());
        }
        public virtual string GetCompanyHuaFeiQiuGouList2Url(string greenNum, int topCategoryId, int secondCategoryId)
        {
            if (topCategoryId <= 0 && secondCategoryId <= 0)
            {
                return urlManager.FormatUrl("userpages_zicailisthfqg2", greenNum, string.Empty);
            }
            return urlManager.FormatUrl("userpages_zicailisthfqgid2", greenNum, topCategoryId.ToString(), secondCategoryId.ToString());
        }

        public virtual string GetCompanyMashChuShouListUrl(string greenNum, int topCategoryId, int secondCategoryId)
        {
            if (topCategoryId <= 0 && secondCategoryId <= 0)
            {
                return urlManager.FormatUrl("userpages_zicailistmashch", greenNum, string.Empty);
            }
            return urlManager.FormatUrl("userpages_zicailistmashchid", greenNum, topCategoryId.ToString(), secondCategoryId.ToString());
        }
        public virtual string GetCompanyMashChuShouList2Url(string greenNum, int topCategoryId, int secondCategoryId)
        {
            if (topCategoryId <= 0 && secondCategoryId <= 0)
            {
                return urlManager.FormatUrl("userpages_zicailistmashch2", greenNum, string.Empty);
            }
            return urlManager.FormatUrl("userpages_zicailistmashchid2", greenNum, topCategoryId.ToString(), secondCategoryId.ToString());
        }
        public virtual string GetCompanyMashQiuGouListUrl(string greenNum, int topCategoryId, int secondCategoryId)
        {
            if (topCategoryId <= 0 && secondCategoryId <= 0)
            {
                return urlManager.FormatUrl("userpages_zicailistmashqg", greenNum, string.Empty);
            }
            return urlManager.FormatUrl("userpages_zicailistmashqgid", greenNum, topCategoryId.ToString(), secondCategoryId.ToString());
        }
        public virtual string GetCompanyMashQiuGouList2Url(string greenNum, int topCategoryId, int secondCategoryId)
        {
            if (topCategoryId <= 0 && secondCategoryId <= 0)
            {
                return urlManager.FormatUrl("userpages_zicailistmashqg2", greenNum, string.Empty);
            }
            return urlManager.FormatUrl("userpages_zicailistmashqgid2", greenNum, topCategoryId.ToString(), secondCategoryId.ToString());
        }

        #region 水产

        public virtual string GetUserFisheryListUrl(string greenNum, int categoryID, int appCategoryId, int categoryType)
        {
            if (categoryID <= 0 && appCategoryId <= 0)
            {
                return urlManager.FormatUrl("userpages_companyfisherylist", greenNum, string.Empty);
            }
            return urlManager.FormatUrl("userpages_fisherylistid", greenNum, categoryID.ToString(), appCategoryId.ToString(), categoryType.ToString());
        }
        public virtual string GetUserFisheryList2Url(string greenNum, int categoryID, int appCategoryId, int categoryType)
        {
            if (categoryID <= 0 && appCategoryId <= 0)
            {
                return urlManager.FormatUrl("userpages_companyfisherylist2", greenNum, string.Empty);
            }
            return urlManager.FormatUrl("userpages_fisherylistid2", greenNum, categoryID.ToString(), appCategoryId.ToString(), categoryType.ToString());
        }
        public virtual string GetUserFisheryListJPUrl(string greenNum, int categoryID, int appCategoryId, int categoryType)
        {
            if (categoryID <= 0 && appCategoryId <= 0)
            {
                return urlManager.FormatUrl("userpages_companyfisherylistjp", greenNum, string.Empty);
            }
            return urlManager.FormatUrl("userpages_fisherylistjpid", greenNum, categoryID.ToString(), appCategoryId.ToString(), categoryType.ToString());
        }
        public virtual string GetUserFisheryListJP2Url(string greenNum, int categoryID, int appCategoryId, int categoryType)
        {
            if (categoryID <= 0 && appCategoryId <= 0)
            {
                return urlManager.FormatUrl("userpages_companyfisherylistjp2", greenNum, string.Empty);
            }
            return urlManager.FormatUrl("userpages_fisherylistjpid2", greenNum, categoryID.ToString(), appCategoryId.ToString(), categoryType.ToString());
        }
        public virtual string GetUserFisheryListQGUrl(string greenNum, int categoryID, int appCategoryId, int categoryType)
        {
            if (categoryID <= 0 && appCategoryId <= 0)
            {
                return urlManager.FormatUrl("userpages_companyfisherylistqg", greenNum, string.Empty);
            }
            return urlManager.FormatUrl("userpages_fisherylistqgid", greenNum, categoryID.ToString(), appCategoryId.ToString(), categoryType.ToString());
        }
        public virtual string GetUserFisheryListQG2Url(string greenNum, int categoryID, int appCategoryId, int categoryType)
        {
            if (categoryID <= 0 && appCategoryId <= 0)
            {
                return urlManager.FormatUrl("userpages_fisherylistqg2", greenNum, string.Empty);
            }
            return urlManager.FormatUrl("userpages_fisherylistqgid2", greenNum, categoryID.ToString(), appCategoryId.ToString(), categoryType.ToString());
        }
        public virtual string GetUserFisheryListJSUrl(string greenNum, int categoryID, int appCategoryId, int categoryType)
        {
            if (categoryID <= 0 && appCategoryId <= 0)
            {
                return urlManager.FormatUrl("userpages_companyfisherylistjs", greenNum, string.Empty);
            }
            return urlManager.FormatUrl("userpages_fisherylistjsid", greenNum, categoryID.ToString(), appCategoryId.ToString(), categoryType.ToString());
        }
        public virtual string GetUserFisheryListJS2Url(string greenNum, int categoryID, int appCategoryId, int categoryType)
        {
            if (categoryID <= 0 && appCategoryId <= 0)
            {
                return urlManager.FormatUrl("userpages_fisherylistjs2", greenNum, string.Empty);
            }
            return urlManager.FormatUrl("userpages_fisherylistjsid2", greenNum, categoryID.ToString(), appCategoryId.ToString(), categoryType.ToString());
        }
        public virtual string GetUserFisheryUrl(string greenNum, int postId, string tradeType)
        {
            return urlManager.FormatUrl("userpages_fisherydetail", greenNum, postId.ToString(), tradeType);
        }
        public virtual string GetUserFisheryDetailUrl(string greenNum, int postId, string tradeType)
        {
            return urlManager.FormatUrl("fisherydetail", greenNum, postId.ToString(), tradeType);
        }

        #endregion

        public virtual string GetUserZiCaiUrl(string greenNum, int postID, string tradeType, int kind)
        {
            return urlManager.FormatUrl("userpages_zicaidetail", greenNum, postID.ToString(), tradeType, kind.ToString());
        }
        public virtual string GetUserZiCaiDetailUrl(string greenNum, int postID, int kind, string tradeType)
        {
            return urlManager.FormatUrl("zicaidetail", greenNum, postID.ToString(), kind.ToString(), tradeType);
        }
        public virtual string GetTradeArticleListUrl(string greenNum)
        {
            return urlManager.FormatUrl("userpages_tradearticlelist", greenNum);
        }
        public virtual string GetTradeArticleUrl(string greenNum, int newsId)
        {
            return urlManager.FormatUrl("userpages_tradearticledetail", greenNum, newsId.ToString());
        }
        public virtual string GetUserArticleListUrl(string greenNum)
        {
            return urlManager.FormatUrl("userpages_articlelist", greenNum);
        }
        public virtual string GetUserArticleUrl(string greenNum, int postID)
        {
            return urlManager.FormatUrl("userpages_articledetail", greenNum, postID.ToString());
        }
        public virtual string GetNewsCommentListUrl(string greenNum, int newsId)
        {
            return urlManager.FormatUrl("userpages_newscomments", greenNum, newsId.ToString());
        }
        public virtual string GetCompanyNewsCommentListUrl(string greenNum, int companyNewsId)
        {
            return urlManager.FormatUrl("userpages_companynewscomments", greenNum, companyNewsId.ToString());
        }
        public virtual string GetUserCertificateListUrl(string greenNum)
        {
            return urlManager.FormatUrl("userpages_certificatelist", greenNum);
        }
        public virtual string GetUserCertificateUrl(string greenNum, int postID)
        {
            return urlManager.FormatUrl("userpages_certificatedetail", greenNum, postID.ToString());
        }
        public virtual string GetMyCompanyShopListUrl(string greenNum)
        {
            return urlManager.FormatUrl("userpages_mycompanyshop", greenNum);
        }
        public virtual string GetMyShoppingListUrl(string greenNum)
        {
            return urlManager.FormatUrl("userpages_myshopping", greenNum);
        }
        public virtual string GetMyCompanyAnonymousInfoListUrl(string greenNum)
        {
            return urlManager.FormatUrl("userpages_mycompanyanonymousinfo", greenNum);
        }
        public virtual string GetMyCompanyInfoListUrl(string greenNum)
        {
            return urlManager.FormatUrl("userpages_mycompanyinfo", greenNum);
        }
        public virtual string GetCompanyBrandListUrl(string greenNum)
        {
            return urlManager.FormatUrl("userpages_companybrand", greenNum);
        }
        public virtual string GetCompanyBrandUrl(string greenNum, int postID)
        {
            return urlManager.FormatUrl("userpages_companybranddetail", greenNum, postID.ToString());
        }
        public virtual string GetCompanyRecruitListUrl(string greenNum)
        {
            return urlManager.FormatUrl("userpages_companyrecruit", greenNum);
        }
        public virtual string GetCompanyRecruitUrl(string greenNum, int postID)
        {
            return urlManager.FormatUrl("userpages_companyrecruitdetail", greenNum, postID.ToString());
        }
        public virtual string GetCompanyAlbumListUrl(string greenNum)
        {
            return urlManager.FormatUrl("userpages_companyalbum", greenNum);
        }
        public virtual string GetCompanyAlbumUrl(string greenNum, int postID)
        {
            return urlManager.FormatUrl("userpages_companyalbumdetail", greenNum, postID.ToString());
        }
        public virtual string GetCompanyTechnologyListUrl(string greenNum)
        {
            return urlManager.FormatUrl("userpages_companytechnology", greenNum);
        }
        public virtual string GetCompanyTechnologyUrl(string greenNum, int postID)
        {
            return urlManager.FormatUrl("userpages_companytechnologydetail", greenNum, postID.ToString());
        }
        public virtual string GetCompanyProjectPerformanceListUrl(string greenNum)
        {
            return urlManager.FormatUrl("userpages_companyprojectperformance", greenNum);
        }
        public virtual string GetCompanyProjectPerformanceUrl(string greenNum, int postID)
        {
            return urlManager.FormatUrl("userpages_companyprojectperformancedetail", greenNum, postID.ToString());
        }
        public virtual string GetCompanyProjectListUrl(string greenNum)
        {
            return urlManager.FormatUrl("userpages_companyproject", greenNum);
        }
        public virtual string GetCompanyProjectUrl(string greenNum, int postID)
        {
            return urlManager.FormatUrl("userpages_companyprojectdetail", greenNum, postID.ToString());
        }
        public virtual string GetUserSendMessageUrl(string greenNum)
        {
            return urlManager.FormatUrl("userpages_sendmessage", greenNum);
        }
        public virtual string GetUserSendMessageSuccessUrl(string greenNum)
        {
            return urlManager.FormatUrl("userpages_sendmessagesuccess", greenNum);
        }
        public virtual string GetUserContactInfoUrl(string greenNum)
        {
            return urlManager.FormatUrl("userpages_contactinfo", greenNum);
        }
        public virtual string GetCompanyPartnerUrl(string greenNum, int categoryId)
        {
            return urlManager.FormatUrl("userpages_companypartner", greenNum, categoryId.ToString());
        }
        public virtual string GetViewUserUrl(int userID)
        {
            return urlManager.FormatUrl("controlpanel_viewuser", userID.ToString());
        }

        #endregion

        //网站后台页面
        #region CompanyType

        public string GetCompanyTypeListUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companytype_manage");
        }
        public string GetCompanyTypeEditUrl(int companyTypeId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companytype_edit", companyTypeId);
        }
        public string GetCompanyTypeAddUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companytype_add");
        }

        #endregion

        #region FriendLink

        public string GetFriendLinkListUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_friendlink_manage");
        }
        public string GetFriendLinkEditUrl(int friendLinkId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_friendlink_edit", friendLinkId);
        }
        public string GetFriendLinkAddUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_friendlink_add");
        }

        #endregion

        #region ContentHtml

        public string GetContentHtmlListUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_contenthtml_manage");
        }
        public string GetContentHtmlEditUrl(int contentHtmlId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_contenthtml_edit", contentHtmlId);
        }
        public string GetContentHtmlAddUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_contenthtml_add");
        }

        #endregion

        #region RecommendedUserNumber

        public string GetRecommendedUserNumberListUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_recommendedusernumber_manage");
        }
        public string GetRecommendedUserNumberEditUrl(int recommendedUserNumberId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_recommendedusernumber_edit", recommendedUserNumberId);
        }
        public string GetRecommendedUserNumberAddUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_recommendedusernumber_add");
        }

        #endregion

        #region SeedlingAttribute

        public string GetSeedlingAttributeListUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_seedlingattribute_manage");
        }
        public string GetSeedlingAttributeEditUrl(int shangBiaoId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_seedlingattribute_edit", shangBiaoId);
        }
        public string GetSeedlingAttributeAddUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_seedlingattribute_add");
        }

        #endregion

        #region ZhongzhiMethod

        public string GetZhongzhiMethodListUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_zhongzhimethod_manage");
        }
        public string GetZhongzhiMethodEditUrl(int zhongzhiMethodId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_zhongzhimethod_edit", zhongzhiMethodId);
        }
        public string GetZhongzhiMethodAddUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_zhongzhimethod_add");
        }

        #endregion

        #region MiaomuCategory

        public string GetMiaomuCategoryListUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_miaomucategory_manage");
        }
        public string GetMiaomuCategoryEditUrl(int miaomuCategoryId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_miaomucategory_edit", miaomuCategoryId);
        }
        public string GetMiaomuCategoryAddUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_miaomucategory_add");
        }

        #endregion

        #region Miaomu

        public string GetMiaomuListUrl(string categoryID, string queryText)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_miaomu_manage", categoryID, queryText);
        }
        public string GetMiaomuEditUrl(int miaomuId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_miaomu_edit", miaomuId);
        }
        public string GetMiaomuAddUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_miaomu_add");
        }

        #endregion

        #region NewsCategory

        public string GetNewsCategoryListUrl(int upNewsCategoryId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_newscategory_manage", upNewsCategoryId);
        }
        public string GetNewsCategoryEditUrl(int newsCategoryId, int upNewsCategoryId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_newscategory_edit", newsCategoryId, upNewsCategoryId);
        }
        public string GetNewsCategoryAddUrl(int upNewsCategoryId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_newscategory_add", upNewsCategoryId);
        }

        #endregion

        #region NewsCategoryChild

        public string GetNewsCategoryChildListUrl(int newsCategoryId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_newscategorychild_manage", newsCategoryId);
        }
        public string GetNewsCategoryChildEditUrl(int newsCategoryId, int newsCategoryChildId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_newscategorychild_edit", newsCategoryId, newsCategoryChildId);
        }
        public string GetNewsCategoryChildAddUrl(int newsCategoryId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_newscategorychild_add", newsCategoryId);
        }

        #endregion

        #region News

        public string GetNewsListUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_news_manage");
        }
        public string GetNewsEditUrl(int newsId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_news_edit", newsId);
        }
        public string GetNewsAddUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_news_add");
        }

        #endregion

        #region ZiCai

        public string GetZiCaiListUrl(int upZiCaiId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_zicai_manage", upZiCaiId);
        }
        public string GetZiCaiEditUrl(int zicaiId, int upZiCaiId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_zicai_edit", zicaiId, upZiCaiId);
        }
        public string GetZiCaiAddUrl(int upZiCaiId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_zicai_add", upZiCaiId);
        }

        #endregion

        #region Area

        public string GetAreaListUrl(int upAreaId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_area_manage", upAreaId);
        }
        public string GetAreaEditUrl(int areaId, int upAreaId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_area_edit", areaId, upAreaId);
        }
        public string GetAreaAddUrl(int upAreaId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_area_add", upAreaId);
        }

        #endregion

        #region ProductCategory

        public string GetProductCategoryListUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_productcategory_manage");
        }
        public string GetProductCategoryEditUrl(int productCategoryId, int categoryType)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_productcategory_edit", productCategoryId, categoryType);
        }
        public string GetProductCategoryAddUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_productcategory_add");
        }
        public string GetAppCategoryListUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_applicationcategory_manage");
        }
        public string GetAppCategoryAddUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_applicationcategory_add");
        }

        #endregion

        #region ApplicationCategory

        public string GetApplicationCategoryListUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_applicationcategory_manage");
        }
        public string GetApplicationCategoryEditUrl(int applicationCategoryId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_applicationcategory_edit", applicationCategoryId);
        }
        public string GetApplicationCategoryAddUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_applicationcategory_add");
        }

        #endregion

        #region ProductSpecification

        public string GetProductSpecificationListUrl(int productCategoryId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_productspecification_manage", productCategoryId);
        }
        public string GetProductSpecificationEditUrl(int productCategoryId, int productSpecificationId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_productspecification_edit", productCategoryId, productSpecificationId);
        }
        public string GetProductSpecificationAddUrl(int productCategoryId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_productspecification_add", productCategoryId);
        }

        #endregion

        #region Product

        public string GetProductListDefaultUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_productdefault_manage");
        }
        public string GetProductListUrl(string categoryID, string queryText)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_product_manage", categoryID, queryText);
        }
        public string GetProductEditUrl(int productId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_product_edit", productId);
        }
        public string GetProductEditProductKebieUrl(int productId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_product_editproductkebie", productId);
        }
        public string GetProductAddUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_product_add");
        }
        public string GetProductAddUrl(int huamuFeedbackId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_product_feedback_add", huamuFeedbackId);
        }

        #endregion

        #region ProductSection

        #region ControlPanel

        public string GetPlantSection_SectionAddUrl(int groupId, int categoryType, int categoryId)
        {
            return urlManager.FormatUrl("plantsection_section_add", groupId, categoryType, categoryId);
        }
        public string GetPlantSection_SectionEditUrl(int sectionId, int categoryType, int categoryId)
        {
            return urlManager.FormatUrl("plantsection_section_edit", sectionId, categoryType, categoryId);
        }
        public string GetPlantSection_SectionListUrl(int productId, int categoryType, int categoryId)
        {
            return urlManager.FormatUrl("plantsection_section_list", productId, categoryType, categoryId);
        }

        public string GetPlantSection_ThreadAddUrl(int sectionId, int categoryType, int categoryId)
        {
            return urlManager.FormatUrl("plantsection_thread_add", sectionId, categoryType, categoryId);
        }
        public string GetPlantSection_ThreadEditUrl(int threadId, int categoryType, int categoryId)
        {
            return urlManager.FormatUrl("plantsection_thread_edit", threadId, categoryType, categoryId);
        }
        public string GetPlantSection_ThreadListUrl(int sectionId, int categoryType, int categoryId)
        {
            return urlManager.FormatUrl("plantsection_thread_list", sectionId, categoryType, categoryId);
        }

        public string GetPlantSection_PostAddUrl(int threadId, int categoryType, int categoryId)
        {
            return urlManager.FormatUrl("plantsection_post_add", threadId, categoryType, categoryId);
        }
        public string GetPlantSection_PostEditUrl(int postId, int categoryType, int categoryId)
        {
            return urlManager.FormatUrl("plantsection_post_edit", postId, categoryType, categoryId);
        }
        public string GetPlantSection_PostListUrl(int threadId, int categoryType, int categoryId)
        {
            return urlManager.FormatUrl("plantsection_post_list", threadId, categoryType, categoryId);
        }

        #endregion

        #region Frontend

        public virtual string GetPlantSection_EssenceThreadListUrl(int sectionId, int categoryType, int categoryId)
        {
            return urlManager.FormatUrl("plantsection_essencethreads", sectionId.ToString(), categoryType.ToString(), categoryId.ToString());
        }
        public virtual string GetPlantSection_RecommendThreadListUrl(int sectionId, int categoryType, int categoryId)
        {
            return urlManager.FormatUrl("plantsection_recommendthreads", sectionId.ToString(), categoryType.ToString(), categoryId.ToString());
        }
        public virtual string GetPlantSection_threadListUrl(int sectionId, int categoryType, int categoryId)
        {
            return urlManager.FormatUrl("plantsection_threads", sectionId.ToString(), categoryType.ToString(), categoryId.ToString());
        }
        public virtual string GetPlantSection_threadUrl(int entityId, int categoryType, int categoryId)
        {
            return urlManager.FormatUrl("plantsection_thread", entityId.ToString(), categoryType.ToString(), categoryId.ToString());
        }
        public virtual string GetPlantSection_AddThreadUrl(int sectionId, int categoryType, int categoryId)
        {
            return urlManager.FormatUrl("plantsection_addthread", sectionId.ToString(), categoryType.ToString(), categoryId.ToString());
        }

        #endregion

        #endregion

        #region ZiCaiInfo

        public string GetZiCaiInfoListUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_zicaiinfo_manage");
        }
        public string GetZiCaiInfoEditUrl(int ziCaiInfoId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_zicaiinfo_edit", ziCaiInfoId);
        }
        public string GetZiCaiInfoAddUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_zicaiinfo_add");
        }
        public string GetCompanyMachineChuShouListUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companymachinechushou_manage");
        }
        public string GetCompanyMachineChuShouEditUrl(int ziCaiInfoId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companymachinechushou_edit", ziCaiInfoId);
        }
        public string GetCompanyMachineChuShouAddUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companymachinechushou_add");
        }
        public string GetCompanyMachineQiuGouListUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companymachineqiugou_manage");
        }
        public string GetCompanyMachineQiuGouEditUrl(int ziCaiInfoId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companymachineqiugou_edit", ziCaiInfoId);
        }
        public string GetCompanyMachineQiuGouAddUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companymachineqiugou_add");
        }
        public string GetCompanyFacilityChuShouListUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companyfacilitychushou_manage");
        }
        public string GetCompanyFacilityChuShouEditUrl(int ziCaiInfoId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companyfacilitychushou_edit", ziCaiInfoId);
        }
        public string GetCompanyFacilityChuShouAddUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companyfacilitychushou_add");
        }
        public string GetCompanyFacilityQiuGouListUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companyfacilityqiugou_manage");
        }
        public string GetCompanyFacilityQiuGouEditUrl(int ziCaiInfoId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companyfacilityqiugou_edit", ziCaiInfoId);
        }
        public string GetCompanyFacilityQiuGouAddUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companyfacilityqiugou_add");
        }
        public string GetCompanyAgriculturalChuShouListUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companyagriculturalchushou_manage");
        }
        public string GetCompanyAgriculturalChuShouEditUrl(int ziCaiInfoId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companyagriculturalchushou_edit", ziCaiInfoId);
        }
        public string GetCompanyAgriculturalChuShouAddUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companyagriculturalchushou_add");
        }
        public string GetCompanyAgriculturalQiuGouListUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companyagriculturalqiugou_manage");
        }
        public string GetCompanyAgriculturalQiuGouEditUrl(int ziCaiInfoId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companyagriculturalqiugou_edit", ziCaiInfoId);
        }
        public string GetCompanyAgriculturalQiuGouAddUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companyagriculturalqiugou_add");
        }
        public string GetCompanyHuaFeiChuShouListUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companyhuafeichushou_manage");
        }
        public string GetCompanyHuaFeiChuShouEditUrl(int ziCaiInfoId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companyhuafeichushou_edit", ziCaiInfoId);
        }
        public string GetCompanyHuaFeiChuShouAddUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companyhuafeichushou_add");
        }
        public string GetCompanyHuaFeiQiuGouListUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companyhuafeiqiugou_manage");
        }
        public string GetCompanyHuaFeiQiuGouEditUrl(int ziCaiInfoId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companyhuafeiqiugou_edit", ziCaiInfoId);
        }
        public string GetCompanyHuaFeiQiuGouAddUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companyhuafeiqiugou_add");
        }
        public string GetCompanyMashChuShouListUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companymashchushou_manage");
        }
        public string GetCompanyMashChuShouEditUrl(int ziCaiInfoId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companymashchushou_edit", ziCaiInfoId);
        }
        public string GetCompanyMashChuShouAddUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companymashchushou_add");
        }
        public string GetCompanyMashQiuGouListUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companymashqiugou_manage");
        }
        public string GetCompanyMashQiuGouEditUrl(int ziCaiInfoId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companymashqiugou_edit", ziCaiInfoId);
        }
        public string GetCompanyMashQiuGouAddUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companymashqiugou_add");
        }

        #endregion

        #region CompanyNews

        public string GetCompanyNewsListUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companynews_manage");
        }
        public string GetCompanyNewsEditUrl(int companyNewsId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companynews_edit", companyNewsId);
        }
        public string GetCompanyNewsAddUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companynews_add");
        }

        #endregion

        #region CompanyCertificate

        public string GetCompanyCertificateListUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companycertificate_manage");
        }
        public string GetCompanyCertificateEditUrl(int companyCertificateId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companycertificate_edit", companyCertificateId);
        }
        public string GetCompanyCertificateAddUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companycertificate_add");
        }

        #endregion

        #region CompanyMessage

        public string GetCompanyMessageListUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companymessage_manage");
        }
        public string GetCompanyMessageEditUrl(int companyMessageId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companymessage_edit", companyMessageId);
        }
        public string GetCompanyMessageAddUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companymessage_add");
        }

        #endregion

        #region CompanyProduct

        public string GetCompanyProductListUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companyproduct_manage");
        }
        public string GetCompanyProductQiuGouListUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companyproductqiugou_manage");
        }
        public string GetCompanyProductJingPinListUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companyproductjingpin_manage");
        }
        public string GetCompanyProductJiShouListUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companyproductjishou_manage");
        }
        public string GetCompanyProductEditUrl(int companyProductId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companyproduct_edit", companyProductId);
        }
        public string GetCompanyProductQiuGouEditUrl(int companyProductId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companyproductqiugou_edit", companyProductId);
        }
        public string GetCompanyProductJingPinEditUrl(int companyProductId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companyproductjingpin_edit", companyProductId);
        }
        public string GetCompanyProductJiShouEditUrl(int companyProductId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companyproductjishou_edit", companyProductId);
        }
        public string GetCompanyProductAddUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companyproduct_add");
        }
        public string GetCompanyProductQiuGouAddUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companyproductqiugou_add");
        }
        public string GetCompanyProductJingPinAddUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companyproductjingpin_add");
        }
        public string GetCompanyProductJiShouAddUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companyproductjishou_add");
        }

        #endregion

        #region HuamuZhiXiangNews

        public string GetHuamuZhiXiangNewsListUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_huamuzhixiangnews_manage");
        }
        public string GetHuamuZhiXiangNewsEditUrl(int huamuZhiXiangNewsId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_huamuzhixiangnews_edit", huamuZhiXiangNewsId);
        }
        public string GetHuamuZhiXiangNewsAddUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_huamuzhixiangnews_add");
        }

        #endregion

        #region HuamuShichangNews

        public string GetHuamuShichangNewsListUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_huamushichangnews_manage");
        }
        public string GetHuamuShichangNewsEditUrl(int huamuShichangNewsId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_huamushichangnews_edit", huamuShichangNewsId);
        }
        public string GetHuamuShichangNewsAddUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_huamushichangnews_add");
        }

        #endregion

        #region HuamuHuizhanNews

        public string GetHuamuHuizhanNewsListUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_huamuhuizhannews_manage");
        }
        public string GetHuamuHuizhanNewsEditUrl(int huamuHuizhanNewsId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_huamuhuizhannews_edit", huamuHuizhanNewsId);
        }
        public string GetHuamuHuizhanNewsAddUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_huamuhuizhannews_add");
        }

        #endregion

        #region VisitCompany

        public string GetVisitCompanyListUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_visitcompany_manage");
        }
        public string GetVisitCompanyEditUrl(int visitCompanyId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_visitcompany_edit", visitCompanyId);
        }
        public string GetVisitCompanyAddUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_visitcompany_add");
        }

        #endregion

        #region CompanyGreenNum

        public string GetCompanyGreenNumListUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companygreennum_manage");
        }
        public string GetCompanyGreenNumEditUrl(int companyGreenNumId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companygreennum_edit", companyGreenNumId);
        }
        public string GetCompanyGreenNumAddUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companygreennum_add");
        }

        #endregion

        #region AnonymousVisitCompany

        public string GetAnonymousVisitCompanyListUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_anonymousvisitcompany_manage");
        }
        public string GetAnonymousVisitCompanyEditUrl(int anonymousVisitCompanyId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_anonymousvisitcompany_edit", anonymousVisitCompanyId);
        }
        public string GetAnonymousVisitCompanyAddUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_anonymousvisitcompany_add");
        }

        #endregion

        #region BusinessInfo

        public string GetBusinessInfoListUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_businessinfo_manage");
        }
        public string GetBusinessInfoEditUrl(int businessInfoId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_businessinfo_edit", businessInfoId);
        }
        public string GetBusinessInfoAddUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_businessinfo_add");
        }

        #endregion

        #region CompanyShop

        public string GetCompanyShopListUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companyshop_manage");
        }
        public string GetCompanyShopEditUrl(int companyShopId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companyshop_edit", companyShopId);
        }
        public string GetCompanyShopAddUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companyshop_add");
        }

        #endregion

        #region CompanyCard

        public string GetCompanyCardListUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companycard_manage");
        }
        public string GetCompanyCardEditUrl(int companyCardId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companycard_edit", companyCardId);
        }
        public string GetCompanyCardAddUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companycard_add");
        }

        #endregion

        #region CompanyBrand

        public string GetCompanyBrandListUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companybrand_manage");
        }
        public string GetCompanyBrandEditUrl(int companyBrandId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companybrand_edit", companyBrandId);
        }
        public string GetCompanyBrandAddUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companybrand_add");
        }

        #endregion

        #region CompanyRecruit

        public string GetCompanyRecruitListUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companyrecruit_manage");
        }
        public string GetCompanyRecruitEditUrl(int companyRecruitId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companyrecruit_edit", companyRecruitId);
        }
        public string GetCompanyRecruitAddUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companyrecruit_add");
        }

        #endregion

        #region CompanyAlbum

        public string GetCompanyAlbumListUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companyalbum_manage");
        }
        public string GetCompanyAlbumEditUrl(int companyAlbumId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companyalbum_edit", companyAlbumId);
        }
        public string GetCompanyAlbumAddUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companyalbum_add");
        }

        #endregion

        #region CompanyTechnology

        public string GetCompanyTechnologyListUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companytechnology_manage");
        }
        public string GetCompanyTechnologyEditUrl(int companyTechnologyId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companytechnology_edit", companyTechnologyId);
        }
        public string GetCompanyTechnologyAddUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companytechnology_add");
        }

        #endregion

        #region CompanyProjectPerformance

        public string GetCompanyProjectPerformanceListUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companyprojectperformance_manage");
        }
        public string GetCompanyProjectPerformanceEditUrl(int companyProjectPerformanceId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companyprojectperformance_edit", companyProjectPerformanceId);
        }
        public string GetCompanyProjectPerformanceAddUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companyprojectperformance_add");
        }

        #endregion

        #region CompanyProject

        public string GetCompanyProjectListUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companyproject_manage");
        }
        public string GetCompanyProjectEditUrl(int companyProjectId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companyproject_edit", companyProjectId);
        }
        public string GetCompanyProjectAddUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companyproject_add");
        }

        #endregion

        #region Comment

        public string GetCommentListUrl(int newsId, int newsEntityType)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_comment_manage", newsId, newsEntityType);
        }
        public string GetCommentEditUrl(int commentId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_comment_edit", commentId);
        }
        public string GetCommentAddUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_comment_add");
        }

        #endregion

        #region FriendLinkCategory

        public string GetFriendLinkCategoryListUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_friendlinkcategory_manage");
        }
        public string GetFriendLinkCategoryEditUrl(int friendLinkCategoryId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_friendlinkcategory_edit", friendLinkCategoryId);
        }
        public string GetFriendLinkCategoryAddUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_friendlinkcategory_add");
        }

        #endregion

        #region ContentHtmlCategory

        public string GetContentHtmlCategoryListUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_contenthtmlcategory_manage");
        }
        public string GetContentHtmlCategoryEditUrl(int contentHtmlCategoryId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_contenthtmlcategory_edit", contentHtmlCategoryId);
        }
        public string GetContentHtmlCategoryAddUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_contenthtmlcategory_add");
        }

        #endregion

        #region MemberService

        public string GetMemberServiceListUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_memberservice_manage");
        }
        public string GetMemberServiceEditUrl(int aboutId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_memberservice_edit", aboutId);
        }
        public string GetMemberServiceAddUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_memberservice_add");
        }

        #endregion

        #region ServiceTerms

        public string GetServiceTermsListUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_serviceterms_manage");
        }
        public string GetServiceTermsEditUrl(int servicetermsId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_serviceterms_edit", servicetermsId);
        }
        public string GetServiceTermsAddUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_serviceterms_add");
        }

        #endregion

        #region SensitiveKeyword

        public string GetSensitiveKeywordListUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_sensitivekeyword_manage");
        }
        public string GetSensitiveKeywordEditUrl(int sensitiveKeywordId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_sensitivekeyword_edit", sensitiveKeywordId);
        }
        public string GetSensitiveKeywordAddUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_sensitivekeyword_add");
        }

        #endregion

        #region HelpCenter

        public string GetHelpCenterListUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_helpcenter_manage");
        }
        public string GetHelpCenterEditUrl(int helpCenterId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_helpcenter_edit", helpCenterId);
        }
        public string GetHelpCenterAddUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_helpcenter_add");
        }

        #endregion

        #region CompanyPartner

        public string GetCompanyPartnerListUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companypartner_manage");
        }
        public string GetCompanyPartnerEditUrl(int companyPartnerId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companypartner_edit", companyPartnerId);
        }
        public string GetCompanyPartnerAddUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companypartner_add");
        }

        #endregion

        #region CompanyPartnerCategory

        public string GetCompanyPartnerCategoryListUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companypartnercategory_manage");
        }
        public string GetCompanyPartnerCategoryEditUrl(int companyPartnerCategoryId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companypartnercategory_edit", companyPartnerCategoryId);
        }
        public string GetCompanyPartnerCategoryAddUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companypartnercategory_add");
        }

        #endregion

        #region CompanyFriendCategory

        public string GetCompanyFriendCategoryListUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companyfriendcategory_manage");
        }
        public string GetCompanyFriendCategoryEditUrl(int companyFriendCategoryId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companyfriendcategory_edit", companyFriendCategoryId);
        }
        public string GetCompanyFriendCategoryAddUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companyfriendcategory_add");
        }

        #endregion

        #region CompanyFriend

        public string GetCompanyFriendListUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companyfriend_manage");
        }
        public string GetCompanyFriendEditUrl(int companyFriendId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companyfriend_edit", companyFriendId);
        }
        public string GetCompanyFriendAddUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companyfriend_add");
        }

        #endregion

        #region Template

        public string GetTemplateListUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_template_manage");
        }
        public string GetTemplateEditUrl(string templateValue)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_template_edit", templateValue);
        }

        #endregion

        #region ZiCaiGuiGeCategory

        public string GetZiCaiGuiGeCategoryListUrl(int ziCaiId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_zicaiguigecategory_manage", ziCaiId);
        }
        public string GetZiCaiGuiGeCategoryEditUrl(int categoryId, int ziCaiId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_zicaiguigecategory_edit", categoryId, ziCaiId);
        }
        public string GetZiCaiGuiGeCategoryAddUrl(int ziCaiId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_zicaiguigecategory_add", ziCaiId);
        }

        #endregion

        #region ZiCaiGuiGe

        public string GetZiCaiGuiGeListUrl(int ziCaiGuiGeId,int ziCaiId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_zicaiguige_manage", ziCaiGuiGeId, ziCaiId);
        }
        public string GetZiCaiGuiGeEditUrl(int categoryId, int ziCaiGuiGeId, int ziCaiId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_zicaiguige_edit", categoryId, ziCaiGuiGeId, ziCaiId);
        }
        public string GetZiCaiGuiGeAddUrl(int categoryId, int ziCaiId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_zicaiguige_add", categoryId, ziCaiId);
        }

        #endregion

        #region HuaMuFeedback

        public string GetHuaMuFeedbackListUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_huamufeedback_manage");
        }
        public string GetHuaMuFeedbackEditUrl(int huaMuFeedbackId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_huamufeedback_edit", huaMuFeedbackId);
        }

        #endregion

        #region 养殖

        #region Aquaculture

        public string GetAquacultureListUrl(string categoryID, string queryText,int entityType)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_aquaculture_manage", categoryID, queryText, entityType);
        }
        public string GetAquacultureEditUrl(int entityId, int entityType)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_aquaculture_edit", entityId, entityType);
        }
        public string GetAquacultureEditAquacultureKebieUrl(int entityId, int entityType)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_aquaculture_editaquaculturekebie", entityId, entityType);
        }
        public string GetAquacultureAddUrl(int entityType)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_aquaculture_add", entityType);
        }
        public string GetAquacultureAddUrl(int entityType, int fisheryFeedbackId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_aquaculture_feedback_add", entityType, fisheryFeedbackId);
        }

        #endregion

        #region AquacultureCategory

        public string GetAquacultureCategoryListUrl(int entityType)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_aquaculturecategory_manage", entityType);
        }
        public string GetAquacultureCategoryEditUrl(int entityId,int entityType)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_aquaculturecategory_edit", entityId, entityType);
        }
        public string GetAquacultureCategoryAddUrl(int entityType)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_aquaculturecategory_add", entityType);
        }

        #endregion

        #region AquacultureAppCategory

        public string GetAquacultureAppCategoryListUrl(int entityType)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_aquacultureappcategory_manage", entityType);
        }
        public string GetAquacultureAppCategoryEditUrl(int entityId, int entityType)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_aquacultureappcategory_edit", entityId, entityType);
        }
        public string GetAquacultureAppCategoryAddUrl(int entityType)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_aquacultureappcategory_add", entityType);
        }

        #endregion

        #region AquacultureAttribute

        public string GetAquacultureAttributeListUrl(int entityType)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_aquacultureattribute_manage", entityType);
        }
        public string GetAquacultureAttributeEditUrl(int entityId, int entityType)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_aquacultureattribute_edit", entityId, entityType);
        }
        public string GetAquacultureAttributeAddUrl(int entityType)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_aquacultureattribute_add", entityType);
        }

        #endregion

        #region AquacultureMethod

        public string GetAquacultureMethodListUrl(int entityType)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_aquaculturemethod_manage", entityType);
        }
        public string GetAquacultureMethodEditUrl(int entityId, int entityType)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_aquaculturemethod_edit", entityId, entityType);
        }
        public string GetAquacultureMethodAddUrl(int entityType)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_aquaculturemethod_add", entityType);
        }

        #endregion

        #region AquacultureGuiGe

        public string GetAquacultureGuiGeListUrl(int categoryId, int entityType)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_aquacultureguige_manage", categoryId, entityType);
        }
        public string GetAquacultureGuiGeEditUrl(int categoryId, int aquacultureGuiGeId, int entityType)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_aquacultureguige_edit", categoryId, aquacultureGuiGeId, entityType);
        }
        public string GetAquacultureGuiGeAddUrl(int categoryId, int entityType)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_aquacultureguige_add", categoryId, entityType);
        }

        #endregion

        #region AquacultureKebie

        public string GetAquacultureKebieListUrl(int entityType)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_aquaculturekebie_manage", entityType);
        }
        public string GetAquacultureKebieEditUrl(int entityId, int entityType)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_aquaculturekebie_edit", entityId, entityType);
        }
        public string GetAquacultureKebieAddUrl(int entityType)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_aquaculturekebie_add", entityType);
        }

        #endregion

        #region AquacultureSectionSection

        #region ControlPanel

        public string GetAquacultureSection_SectionAddUrl(int groupId,int categoryType,int categoryId)
        {
            return urlManager.FormatUrl("aquaculturesection_section_add", groupId, categoryType, categoryId);
        }
        public string GetAquacultureSection_SectionEditUrl(int sectionId, int categoryType, int categoryId)
        {
            return urlManager.FormatUrl("aquaculturesection_section_edit", sectionId, categoryType, categoryId);
        }
        public string GetAquacultureSection_SectionListUrl(int productId, int categoryType, int categoryId)
        {
            return urlManager.FormatUrl("aquaculturesection_section_list", productId, categoryType, categoryId);
        }

        public string GetAquacultureSection_ThreadAddUrl(int sectionId, int categoryType, int categoryId)
        {
            return urlManager.FormatUrl("aquaculturesection_thread_add", sectionId, categoryType, categoryId);
        }
        public string GetAquacultureSection_ThreadEditUrl(int threadId, int categoryType, int categoryId)
        {
            return urlManager.FormatUrl("aquaculturesection_thread_edit", threadId, categoryType, categoryId);
        }
        public string GetAquacultureSection_ThreadListUrl(int sectionId, int categoryType, int categoryId)
        {
            return urlManager.FormatUrl("aquaculturesection_thread_list", sectionId, categoryType, categoryId);
        }

        public string GetAquacultureSection_PostAddUrl(int threadId, int categoryType, int categoryId)
        {
            return urlManager.FormatUrl("aquaculturesection_post_add", threadId, categoryType, categoryId);
        }
        public string GetAquacultureSection_PostEditUrl(int postId, int categoryType, int categoryId)
        {
            return urlManager.FormatUrl("aquaculturesection_post_edit", postId, categoryType, categoryId);
        }
        public string GetAquacultureSection_PostListUrl(int threadId, int categoryType, int categoryId)
        {
            return urlManager.FormatUrl("aquaculturesection_post_list", threadId, categoryType, categoryId);
        }

        #endregion

        #region Frontend

        public virtual string GetAquacultureSection_EssenceThreadListUrl(int sectionId, int categoryType, int categoryId)
        {
            return urlManager.FormatUrl("aquaculturesection_essencethreads", sectionId.ToString(), categoryType.ToString(), categoryId.ToString());
        }
        public virtual string GetAquacultureSection_RecommendThreadListUrl(int sectionId, int categoryType, int categoryId)
        {
            return urlManager.FormatUrl("aquaculturesection_recommendthreads", sectionId.ToString(), categoryType.ToString(), categoryId.ToString());
        }
        public virtual string GetAquacultureSection_threadListUrl(int sectionId, int categoryType, int categoryId)
        {
            return urlManager.FormatUrl("aquaculturesection_threads", sectionId.ToString(), categoryType.ToString(), categoryId.ToString());
        }
        public virtual string GetAquacultureSection_threadUrl(int entityId, int categoryType, int categoryId)
        {
            return urlManager.FormatUrl("aquaculturesection_thread", entityId.ToString(), categoryType.ToString(), categoryId.ToString());
        }
        public virtual string GetAquacultureSection_AddThreadUrl(int sectionId, int categoryType, int categoryId)
        {
            return urlManager.FormatUrl("aquaculturesection_addthread", sectionId.ToString(), categoryType.ToString(), categoryId.ToString());
        }

        #endregion

        #endregion

        #region AquacultureFeedback

        public string GetAquacultureFeedbackListUrl(int categoryType)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_aquaculturefeedback_manage", categoryType);
        }
        public string GetAquacultureFeedbackEditUrl(int entityId, int categoryType)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_aquaculturefeedback_edit", entityId, categoryType);
        }

        #endregion

        #region CompanyFishery

        public string GetCompanyFisheryListUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companyfishery_manage");
        }
        public string GetCompanyFisheryQiuGouListUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companyfisheryqiugou_manage");
        }
        public string GetCompanyFisheryJingPinListUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companyfisheryjingpin_manage");
        }
        public string GetCompanyFisheryJiShouListUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companyfisheryjishou_manage");
        }
        public string GetCompanyFisheryEditUrl(int companyFisheryId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companyfishery_edit", companyFisheryId);
        }
        public string GetCompanyFisheryQiuGouEditUrl(int companyFisheryId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companyfisheryqiugou_edit", companyFisheryId);
        }
        public string GetCompanyFisheryJingPinEditUrl(int companyFisheryId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companyfisheryjingpin_edit", companyFisheryId);
        }
        public string GetCompanyFisheryJiShouEditUrl(int companyFisheryId)
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companyfisheryjishou_edit", companyFisheryId);
        }
        public string GetCompanyFisheryAddUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companyfishery_add");
        }
        public string GetCompanyFisheryQiuGouAddUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companyfisheryqiugou_add");
        }
        public string GetCompanyFisheryJingPinAddUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companyfisheryjingpin_add");
        }
        public string GetCompanyFisheryJiShouAddUrl()
        {
            return urlManager.FormatUrl("system_applications_yuanlin_companyfisheryjishou_add");
        }

        #endregion

        #region TechAquaculture

        public virtual string GetTechFisheryDefaultUrl()
        {
            return urlManager.FormatUrl("technologyfishery_default");
        }
        public virtual string GetTechAquacultureListUrl(int categoryID, int categoryType)
        {
            return urlManager.FormatUrl("technologyaquaculture_list", categoryID.ToString(), categoryType.ToString());
        }
        public virtual string GetTechAquacultureListUrl(string charactor, int categoryType)
        {
            return urlManager.FormatUrl("technologyaquaculture_list2", charactor, categoryType.ToString());
        }
        public virtual string GetTechAquacultureUrl(int postID, int categoryType)
        {
            return urlManager.FormatUrl("technologyaquaculture_detail", postID.ToString(), categoryType.ToString());
        }

        #endregion

        #endregion

        //INSERT POSITION

    }
}